package com.xuecheng.learning.exception;

import com.xuecheng.base.exception.XCPlusBaseException;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 课程已经选了
 * @date 2025/2/26 16:08
 */
public class LearningCourseHasBeenChosenException extends XCPlusBaseException {

    LearningCourseHasBeenChosenException(String message) {
        super(message);
    }

    public static void cast(){
        throw new LearningCourseHasBeenChosenException(LearningError.COURSE_HAS_BEEN_CHOSEN.getErrMsg());
    }
}
